<?php

if(isset($_POST['tijiao']))
{
    extract($_POST);
    //echo "user:".$user;
    //echo "pass:".$pass;
    session_set_cookie_params(30);
    session_start(); 
    header("location:ok.php");  
}
  
?>


<form action="login.php" method="post">
用户名：<input type="text" name="user"   title="username">
<br/>

密码:<input type="password" name="pass">
<br/>
<input type="submit"  name='tijiao' value="登录"/>
<br/>
记住<input type="checkbox" name="jizhu">
</form>


